import request from '@/utils/request'

// 查询合格证打印列表列表
export function listManagement(query) {
  return request({
    url: '/nongjt/management/list',
    method: 'get',
    params: query
  })
}

// 查询合格证打印列表详细
export function getManagement(recordId) {
  return request({
    url: '/nongjt/management/' + recordId,
    method: 'get'
  })
}

// 新增合格证打印列表
export function addManagement(data) {
  return request({
    url: '/nongjt/management',
    method: 'post',
    data: data
  })
}

// 修改合格证打印列表
export function updateManagement(data) {
  return request({
    url: '/nongjt/management',
    method: 'put',
    data: data
  })
}

// 删除合格证打印列表
export function delManagement(recordId) {
  return request({
    url: '/nongjt/management/' + recordId,
    method: 'delete'
  })
}
